package homework_03.home_13;

import java.util.Scanner;

public class HomeWork_13 {
    /*输入一个0～100的分数，如果不是0～100之间，打印分数无效，根据分数等级打印A,B,C,D,E。*/
    public static void main(String[] args) {
        int a;
        Scanner input = new Scanner(System.in);
        System.out.println("请输入分数：");
        a = input.nextInt();
        a /= 10;
        switch (a) {
            case 10:
            case 9:
                System.out.println("a成绩为：A");
                break;
            case 8:
                System.out.println("a成绩为：B");
                break;
            case 7:
                System.out.println("a成绩为：C");
                break;
            case 6:
                System.out.println("a成绩为：D");
                break;
            case 5:
            case 4:
            case 3:
            case 2:
            case 1:
            case 0:
                System.out.println("a成绩为：E");
                break;
            default:
                System.out.println("分数无效");
                break;
        }
    }
}
